package com.pig.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Order {
    private Long id;
    private Long userId;
    private String receiverName;
    private String receiverPhone;
    private String receiverAddress;
    private BigDecimal totalPrice;
    private Integer status; // 0-待支付 1-已支付 2-已发货 3-已完成 4-已取消
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    // 可选：订单明细列表
    private List<OrderItem> items;


} 